<?php

namespace App\Logics;


use App\Models\SiteConfig;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;

class SiteConfigLogic extends Logic
{


    // 父级
    // 添加，修改，删除，列表，停用 操作
    // TODO 操作日志

    // 配置
    public function setting()
    {
        $list = Config::get('site');

        return $list;
    }


    // 获取配置
    public function config()
    {
        $model = new SiteConfig();
        $list  = $model->getConfigCache([]);

        return $list;
    }


}


